package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class RunfastGoodsSellChildren implements Serializable {
    /**
     * 外卖商品订单记录子类
     */
    private Integer id;

    private Integer businessid;//商家id

    private String businessname;//商品名称

    private Integer goodssellid;//商品id

    private String goodssellname;//商品名称

    private Integer num;//数量

    private String ordercode;//订单号

    private Integer pid;//父ID---订单id

    private Double price;//原价

    private Double totalprice;//总金额

    private Integer goodsselloptionid;//商品选项ID

    private String goodsselloptionname;//商品规格名称

    private Integer goodssellstandardid;//商品规格ID

    private String goodssellstandardname;//商品选项名称

    private Date createtime;

    private Integer status;//订单状态

    private Integer userid;//用户id

    private BigDecimal disprice;//优惠价

    private String optionids;//商品选项ID(多项以逗号隔开)

    private Integer ptype;//是否收取打包费0是1否

    private Integer activity;//是否参与活动1是

    private Integer errend;// 是否异常结束1是

    private Integer activityid;//活动Id

    private String activityname;//活动名称

    private Integer activitytype;//活动类型 1满减  2打折3赠品4特价

    private String goods;//赠送的商品：

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public RunfastGoodsSellChildren withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBusinessid() {
        return businessid;
    }

    public RunfastGoodsSellChildren withBusinessid(Integer businessid) {
        this.setBusinessid(businessid);
        return this;
    }

    public void setBusinessid(Integer businessid) {
        this.businessid = businessid;
    }

    public String getBusinessname() {
        return businessname;
    }

    public RunfastGoodsSellChildren withBusinessname(String businessname) {
        this.setBusinessname(businessname);
        return this;
    }

    public void setBusinessname(String businessname) {
        this.businessname = businessname == null ? null : businessname.trim();
    }

    public Integer getGoodssellid() {
        return goodssellid;
    }

    public RunfastGoodsSellChildren withGoodssellid(Integer goodssellid) {
        this.setGoodssellid(goodssellid);
        return this;
    }

    public void setGoodssellid(Integer goodssellid) {
        this.goodssellid = goodssellid;
    }

    public String getGoodssellname() {
        return goodssellname;
    }

    public RunfastGoodsSellChildren withGoodssellname(String goodssellname) {
        this.setGoodssellname(goodssellname);
        return this;
    }

    public void setGoodssellname(String goodssellname) {
        this.goodssellname = goodssellname == null ? null : goodssellname.trim();
    }

    public Integer getNum() {
        return num;
    }

    public RunfastGoodsSellChildren withNum(Integer num) {
        this.setNum(num);
        return this;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getOrdercode() {
        return ordercode;
    }

    public RunfastGoodsSellChildren withOrdercode(String ordercode) {
        this.setOrdercode(ordercode);
        return this;
    }

    public void setOrdercode(String ordercode) {
        this.ordercode = ordercode == null ? null : ordercode.trim();
    }

    public Integer getPid() {
        return pid;
    }

    public RunfastGoodsSellChildren withPid(Integer pid) {
        this.setPid(pid);
        return this;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Double getPrice() {
        return price;
    }

    public RunfastGoodsSellChildren withPrice(Double price) {
        this.setPrice(price);
        return this;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getTotalprice() {
        return totalprice;
    }

    public RunfastGoodsSellChildren withTotalprice(Double totalprice) {
        this.setTotalprice(totalprice);
        return this;
    }

    public void setTotalprice(Double totalprice) {
        this.totalprice = totalprice;
    }

    public Integer getGoodsselloptionid() {
        return goodsselloptionid;
    }

    public RunfastGoodsSellChildren withGoodsselloptionid(Integer goodsselloptionid) {
        this.setGoodsselloptionid(goodsselloptionid);
        return this;
    }

    public void setGoodsselloptionid(Integer goodsselloptionid) {
        this.goodsselloptionid = goodsselloptionid;
    }

    public String getGoodsselloptionname() {
        return goodsselloptionname;
    }

    public RunfastGoodsSellChildren withGoodsselloptionname(String goodsselloptionname) {
        this.setGoodsselloptionname(goodsselloptionname);
        return this;
    }

    public void setGoodsselloptionname(String goodsselloptionname) {
        this.goodsselloptionname = goodsselloptionname == null ? null : goodsselloptionname.trim();
    }

    public Integer getGoodssellstandardid() {
        return goodssellstandardid;
    }

    public RunfastGoodsSellChildren withGoodssellstandardid(Integer goodssellstandardid) {
        this.setGoodssellstandardid(goodssellstandardid);
        return this;
    }

    public void setGoodssellstandardid(Integer goodssellstandardid) {
        this.goodssellstandardid = goodssellstandardid;
    }

    public String getGoodssellstandardname() {
        return goodssellstandardname;
    }

    public RunfastGoodsSellChildren withGoodssellstandardname(String goodssellstandardname) {
        this.setGoodssellstandardname(goodssellstandardname);
        return this;
    }

    public void setGoodssellstandardname(String goodssellstandardname) {
        this.goodssellstandardname = goodssellstandardname == null ? null : goodssellstandardname.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public RunfastGoodsSellChildren withCreatetime(Date createtime) {
        this.setCreatetime(createtime);
        return this;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getStatus() {
        return status;
    }

    public RunfastGoodsSellChildren withStatus(Integer status) {
        this.setStatus(status);
        return this;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getUserid() {
        return userid;
    }

    public RunfastGoodsSellChildren withUserid(Integer userid) {
        this.setUserid(userid);
        return this;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public BigDecimal getDisprice() {
        return disprice;
    }

    public RunfastGoodsSellChildren withDisprice(BigDecimal disprice) {
        this.setDisprice(disprice);
        return this;
    }

    public void setDisprice(BigDecimal disprice) {
        this.disprice = disprice;
    }

    public String getOptionids() {
        return optionids;
    }

    public RunfastGoodsSellChildren withOptionids(String optionids) {
        this.setOptionids(optionids);
        return this;
    }

    public void setOptionids(String optionids) {
        this.optionids = optionids == null ? null : optionids.trim();
    }

    public Integer getPtype() {
        return ptype;
    }

    public RunfastGoodsSellChildren withPtype(Integer ptype) {
        this.setPtype(ptype);
        return this;
    }

    public void setPtype(Integer ptype) {
        this.ptype = ptype;
    }

    public Integer getActivity() {
        return activity;
    }

    public RunfastGoodsSellChildren withActivity(Integer activity) {
        this.setActivity(activity);
        return this;
    }

    public void setActivity(Integer activity) {
        this.activity = activity;
    }

    public Integer getErrend() {
        return errend;
    }

    public RunfastGoodsSellChildren withErrend(Integer errend) {
        this.setErrend(errend);
        return this;
    }

    public void setErrend(Integer errend) {
        this.errend = errend;
    }

    public Integer getActivityid() {
        return activityid;
    }

    public RunfastGoodsSellChildren withActivityid(Integer activityid) {
        this.setActivityid(activityid);
        return this;
    }

    public void setActivityid(Integer activityid) {
        this.activityid = activityid;
    }

    public String getActivityname() {
        return activityname;
    }

    public RunfastGoodsSellChildren withActivityname(String activityname) {
        this.setActivityname(activityname);
        return this;
    }

    public void setActivityname(String activityname) {
        this.activityname = activityname == null ? null : activityname.trim();
    }

    public Integer getActivitytype() {
        return activitytype;
    }

    public RunfastGoodsSellChildren withActivitytype(Integer activitytype) {
        this.setActivitytype(activitytype);
        return this;
    }

    public void setActivitytype(Integer activitytype) {
        this.activitytype = activitytype;
    }

    public String getGoods() {
        return goods;
    }

    public RunfastGoodsSellChildren withGoods(String goods) {
        this.setGoods(goods);
        return this;
    }

    public void setGoods(String goods) {
        this.goods = goods == null ? null : goods.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", businessid=").append(businessid);
        sb.append(", businessname=").append(businessname);
        sb.append(", goodssellid=").append(goodssellid);
        sb.append(", goodssellname=").append(goodssellname);
        sb.append(", num=").append(num);
        sb.append(", ordercode=").append(ordercode);
        sb.append(", pid=").append(pid);
        sb.append(", price=").append(price);
        sb.append(", totalprice=").append(totalprice);
        sb.append(", goodsselloptionid=").append(goodsselloptionid);
        sb.append(", goodsselloptionname=").append(goodsselloptionname);
        sb.append(", goodssellstandardid=").append(goodssellstandardid);
        sb.append(", goodssellstandardname=").append(goodssellstandardname);
        sb.append(", createtime=").append(createtime);
        sb.append(", status=").append(status);
        sb.append(", userid=").append(userid);
        sb.append(", disprice=").append(disprice);
        sb.append(", optionids=").append(optionids);
        sb.append(", ptype=").append(ptype);
        sb.append(", activity=").append(activity);
        sb.append(", errend=").append(errend);
        sb.append(", activityid=").append(activityid);
        sb.append(", activityname=").append(activityname);
        sb.append(", activitytype=").append(activitytype);
        sb.append(", goods=").append(goods);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}